package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface AuthorityDao {
    Page<User> selectByCondition(String queryString);

    Set<Role> findRoleByUserId(Integer userId);

    LinkedHashSet<Menu> findMenuByUsername(String username);

    List<Menu> findMenuById(Integer id);

    User findUserByUsername(String username);

    List<Integer> findRoleCheckedIdByUsername(String username);

    List<Role> findRoles();

    void deleteByUserId(Integer id);

    void insertRoles(Map<String, Object> map);
}
